package ooday03.animal;

public class Dog extends Animal implements Swim{

    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", color='" + color + '\'' +
                '}';
    }

    Dog(){

    }

    Dog(String name, int age, String color){
        super(name, age, color);
    }
    void homeGuard(){
        System.out.println(age+"岁的 🐕 "+name+"正在严正以待的把守大门");
    }

    @Override
    void eat() {
        System.out.println(age+"岁的"+" 🐕 "+name+"正在美美的享用狗粮");
    }

    @Override
    public void swim() {
        System.out.println("小狗🐕 "+name+"正在狗刨式游泳");
    }
}
